package com.xxxx.worm;

import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;

/**
 *  url存放
 */
public class UrlLink {
    //存储已经访问过的url
    private static Set visitedUrlSet = new HashSet();

    //存储未访问过的url
    private static LinkedList unvisitLinkedList = new LinkedList();

//获得访问过的url数量
    public int getVisitedUrlNCount(){
        return visitedUrlSet.size();
    }
    //获取未访问的url
    public static LinkedList getUnvisitLinkedList() {
        return unvisitLinkedList;
    }

    public static void addvisitedUrlSet(String url){
    visitedUrlSet.add(url);
    }
}
